ALLVIEW_HOST = "http://132.110.64.76:8080"
ALLVIEW_BACKSTAGE = "http://132.110.64.148:8082"
PROJECT_URL = {
    "login": "{}/allview/login.do?loginType=pc".format(ALLVIEW_HOST),  # 登陆
    "wp_main_save": "{}/allview/pages/wp/wpMainSave.do?oper=add".format(ALLVIEW_HOST),  # 新增活动派单
    "wp_judge_save": "{}/allview/pages/wp/wpJudgeSave.do".format(ALLVIEW_HOST),  # 新增营销活动
    "wp_param_save": "{}/allview/pages/wp/wpParamSave.do".format(ALLVIEW_HOST),  # 添加,修改参数
    "wp_batch_save": "{}/allview/pages/wp/wpBatchSave.do".format(ALLVIEW_HOST),  # 添加,修改批次
    "wp_record_save": "{}/allview/pages/wp/wpRecordSave.do".format(ALLVIEW_HOST),  # 反馈定义
    "wp_record_search": "{}/allview/pages/wp/wpRecordSearch.do".format(ALLVIEW_HOST),  # 查询依赖字段
    "project_interface": "http://192.168.1.5:8082/maa/qstActivity/getQstActivity",  # Test session
}

BACKSTAGE_URL = {
    "load_json": "{}/maa/qstActivity/getQstActivity".format(ALLVIEW_BACKSTAGE),  # 获取需要提交的字段
    "push_result": "{}/maa/qstActivity/receivePushResult".format(ALLVIEW_BACKSTAGE),  # 提交完成信息
}

t = {
    "msg": "success",
    "code": 0,
    "timestamp": 1534706764492,
    "po": [
        {
            "id": 8,
            "createBy": 1,
            "createTime": "2018-08-18 03:10:38",
            "updateBy": 0,
            "updateTime": "2018-08-18 03:20:32",
            "wpName": "ActivityPython01",
            "wpCode": "Python01876",
            "dayCount": 10,
            "caliber": "emmmm",
            "typeName": "",
            "dateMaBegin": "2018-08-18 00:00:00",
            "dateMaEnd": "2018-08-23 00:00:00",
            "dateStatBegin": "2018-08-22 00:00:00",
            "dateStatEnd": "2018-08-31 00:00:00",
            "dealFields": "",
            "createdBy": "admin",
            "pushMsg": "",
            "pushStatus": "待推送",
            "status": "启用",
            "wpPackage": "外系统",
            "pushTime": "",
            "plannedPushTime": "2018-08-18 02:58:13",
            "createdTime": "2018-08-18 03:10:38",
            "paramNames": "acc_nbr,acc_nbr",
            "remark": "remark",
            "dataType": "ACTIVITY",
            "templetName": "",
            "templetRemark": "",
            "judges": [

            ],
            "params": [
                {
                    "id": 18,
                    "createBy": 1,
                    "createTime": "2018-08-18 03:10:38",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 03:10:38",
                    "paramCode": "PARAM08",
                    "paramName": "usrname",
                    "paramSource": "清单导入"
                },
                {
                    "id": 19,
                    "createBy": 1,
                    "createTime": "2018-08-18 03:10:38",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 03:10:38",
                    "paramCode": "PARAM21",
                    "paramName": "usrname21",
                    "paramSource": "清单导入"
                },
                {
                    "id": 20,
                    "createBy": 1,
                    "createTime": "2018-08-18 03:10:38",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 03:10:38",
                    "paramCode": "PARAM23",
                    "paramName": "usrname23",
                    "paramSource": "清单导入"
                },
                {
                    "id": 21,
                    "createBy": 1,
                    "createTime": "2018-08-18 03:10:38",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 03:10:38",
                    "paramCode": "PARAM16",
                    "paramName": "usrname16",
                    "paramSource": "清单导入"
                }
            ],
            "records": [
                {
                    "id": 13,
                    "createBy": 1,
                    "createTime": "2018-08-18 03:10:38",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 03:10:38",
                    "paramName": "Python",
                    "paramType": "字符串",
                    "colType": "文本输入",
                    "required": "是",
                    "groupName": "回填信息",
                    "orderBy": 1,
                    "modifyDay": 10,
                    "dependOn": "V",
                    "colDefault": " ",
                    "dependRcID": "",
                    "dependValue": "是否",
                    "colSelectSql": ""
                }
            ],
            "batchs": [
                {
                    "id": 19,
                    "createBy": 1,
                    "createTime": "2018-08-18 03:20:21",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 03:20:21",
                    "batchName": "WarnSalerPython-04",
                    "dateMaBegin": "2018-08-16 00:00:00",
                    "dateMaEnd": "2018-08-23 00:00:00",
                    "dateStatBegin": "2018-08-22 00:00:00",
                    "dateStatEnd": "2018-08-31 00:00:00",
                    "wp": "是",
                    "salesRmd": "SalerPython-4",
                    "path": "C:\\Users\\qt8\\Desktop\\营销大数据文档合集/2018-08-18_03-20-08_object_import_demo.csv",
                    "autoWPType": "[\"所属责任田负责人\",\"所属门店负责人\",\"所属片区经理\",\"所属中心接单人\"]",
                    "importModel": "csv文件"
                }
            ]
        },
        {
            "id": 7,
            "createBy": 1,
            "createTime": "2018-08-18 02:23:48",
            "updateBy": 0,
            "updateTime": "2018-08-18 02:36:30",
            "wpName": "Activity_02",
            "wpCode": "acticode_777",
            "dayCount": 10,
            "caliber": "",
            "typeName": "",
            "dateMaBegin": "2018-08-18 00:00:00",
            "dateMaEnd": "2018-08-23 00:00:00",
            "dateStatBegin": "2018-08-22 00:00:00",
            "dateStatEnd": "2018-08-30 00:00:00",
            "dealFields": "",
            "createdBy": "admin",
            "pushMsg": "",
            "pushStatus": "待推送",
            "status": "启用",
            "wpPackage": "外系统",
            "pushTime": "",
            "plannedPushTime": "2018-08-18 02:35:35",
            "createdTime": "2018-08-18 02:23:48",
            "paramNames": "Acc_NBr",
            "remark": "",
            "dataType": "ACTIVITY",
            "templetName": "",
            "templetRemark": "",
            "judges": [
                {
                    "id": 15,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:27:40",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:27:40",
                    "salesRmd": "Saler_Python",
                    "judgeOrder": "01",
                    "judgeType": "移动",
                    "importance": "重点",
                    "successSourceCode": "",
                    "falseSourceCode": ""
                },
                {
                    "id": 16,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:27:40",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:27:40",
                    "salesRmd": "Saler_Python_2",
                    "judgeOrder": "02",
                    "judgeType": "宽带",
                    "importance": "重点",
                    "successSourceCode": "abcdefg",
                    "falseSourceCode": "abcdefg"
                },
                {
                    "id": 17,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:32:13",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:32:13",
                    "salesRmd": "Saler_Python_3",
                    "judgeOrder": "01",
                    "judgeType": "宽带",
                    "importance": "重点",
                    "successSourceCode": "abcdefg",
                    "falseSourceCode": "abcdefg"
                },
                {
                    "id": 18,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:32:13",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:32:13",
                    "salesRmd": "Saler_Python_4",
                    "judgeOrder": "02",
                    "judgeType": "宽带",
                    "importance": "重点",
                    "successSourceCode": "abcdefg",
                    "falseSourceCode": "abcdefg"
                },
                {
                    "id": 19,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:32:13",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:32:13",
                    "salesRmd": "Saler_Python_5",
                    "judgeOrder": "04",
                    "judgeType": "宽带",
                    "importance": "重点",
                    "successSourceCode": "abcdefg",
                    "falseSourceCode": "abcdefg"
                }
            ],
            "params": [
                {
                    "id": 15,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:27:40",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:27:40",
                    "paramCode": "PARAM01",
                    "paramName": "usrname",
                    "paramSource": "清单导入"
                },
                {
                    "id": 16,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:27:40",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:27:40",
                    "paramCode": "PARAM02",
                    "paramName": "usrname_1",
                    "paramSource": "清单导入"
                },
                {
                    "id": 17,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:27:40",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:27:40",
                    "paramCode": "PARAM09",
                    "paramName": "usrname_9",
                    "paramSource": "清单导入"
                }
            ],
            "records": [

            ],
            "batchs": [
                {
                    "id": 11,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:27:40",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:27:40",
                    "batchName": "batcher_01",
                    "dateMaBegin": "2018-08-01 00:00:00",
                    "dateMaEnd": "2018-08-09 00:00:00",
                    "dateStatBegin": "2018-08-15 00:00:00",
                    "dateStatEnd": "2018-08-24 00:00:00",
                    "wp": "是",
                    "salesRmd": "Saler_Python",
                    "path": "C:\\Users\\qt8\\Desktop\\营销大数据文档合集/2018-08-18_02-26-39_object_import_demo_upload.csv",
                    "autoWPType": "[\"所属责任田负责人\",\"所属门店负责人\"]",
                    "importModel": "csv文件"
                },
                {
                    "id": 12,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:32:13",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:32:13",
                    "batchName": "batcher_023",
                    "dateMaBegin": "2018-08-01 00:00:00",
                    "dateMaEnd": "2018-08-09 00:00:00",
                    "dateStatBegin": "2018-08-15 00:00:00",
                    "dateStatEnd": "2018-08-24 00:00:00",
                    "wp": "是",
                    "salesRmd": "Saler_Python_3",
                    "path": "C:\\Users\\qt8\\Desktop\\营销大数据文档合集/2018-08-18_02-29-34_object_import_demo.csv",
                    "autoWPType": "[\"所属责任田负责人\",\"所属门店负责人\"]",
                    "importModel": "csv文件"
                },
                {
                    "id": 13,
                    "createBy": 1,
                    "createTime": "2018-08-18 02:32:13",
                    "updateBy": 1,
                    "updateTime": "2018-08-18 02:32:13",
                    "batchName": "batcher_021",
                    "dateMaBegin": "2018-08-01 00:00:00",
                    "dateMaEnd": "2018-08-09 00:00:00",
                    "dateStatBegin": "2018-08-15 00:00:00",
                    "dateStatEnd": "2018-08-24 00:00:00",
                    "wp": "是",
                    "salesRmd": "Saler_Python_4",
                    "path": "C:\\Users\\qt8\\Desktop\\营销大数据文档合集/2018-08-18_02-31-46_object_import_demo.csv",
                    "autoWPType": "[\"所属责任田负责人\",\"所属门店负责人\"]",
                    "importModel": "csv文件"
                }
            ]
        }
    ]
}
